#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#define CURRENT_DB_VERSION 3

#include <QMainWindow>
#include <QTranslator>
#include <QSqlDatabase>

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:
    void on_actionAbout_Qt_triggered();

    void on_actionAbout_AngolMix_triggered();

    void on_action_Settings_triggered();

    void on_commandLinkButton_Mixer_clicked();

    void on_commandLinkButton_Chooser_clicked();

signals:
    void settingsChangedSignal();

private:
    void settingsLoad();
    bool openSqlDB();
    int checkDatabase();
    void createDBTables(int);
    Ui::MainWindow *ui;
    QList<QStringList> settingsListMain;
    QTranslator translator;
    QSqlDatabase db;
};

#endif // MAINWINDOW_H
